home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Printing / PrintCopyLoop.h < prev    next >
Text File  |  2000-06-23  |  809b  |  45 lines

  1. // PrintCopyLoop.h
  2.  
  3. #ifndef PrintCopyLoop_h
  4. #define PrintCopyLoop_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9. #ifndef PrintBatch_h
  10. #include "PrintBatch.h"
  11. #endif
  12. #ifndef PortMaintainer_h
  13. #include "PortMaintainer.h"
  14. #endif
  15.  
  16. class PrintJob;
  17.  
  18. class PrintCopyLoop
  19.   {
  20.     private:
  21.         PortMaintainer oldPort;
  22.         PrintBatch batch;
  23.         uint32 number;
  24.         uint32 stop;
  25.         
  26.         // not implemented:
  27.             PrintCopyLoop( const PrintCopyLoop& );
  28.             void operator=( const PrintCopyLoop& );
  29.     
  30.     public:
  31.         explicit PrintCopyLoop( PrintJob& );
  32.         
  33.         bool Finished() const                { return number >= stop; }
  34.         bool Unfinished() const                { return number < stop; }
  35.         
  36.         uint32 Number() const                { return number; }
  37.         
  38.         void operator++();
  39.         void operator++(int)                    { operator++(); }
  40.         
  41.         PrintBatch& Batch()                    { return batch; }
  42.   };
  43.  
  44. #endif
  45.